export default {
  state: {
    photo: localStorage.getItem('uphoto') || ''
  },
  getters: {
    photo: state => {
      return state.photo
    },
    test (s) {
      return s.photo
    }
  },
  mutations: {
    setPhoto (state, payload) {
      state.photo = payload
      localStorage.setItem('uphoto', payload)
    }
  }
}
